<?php

use yii\helpers\Html;

/* @var $this yii\web\View */
/* @var $model app\models\Dept */

$this->title = '更新部门: ' . ' ' . $model->dname;
$this->params['breadcrumbs'][] = ['label' => '部门', 'url' => ['index']];
$this->params['breadcrumbs'][] = ['label' => $model->id, 'url' => ['view', 'id' => $model->id]];
$this->params['breadcrumbs'][] = '更新';
?>
<div class="dept-update">
    
    <?php
    $menusArray = $menus;

    foreach ($menusArray as $value) {
        $array['id'] = $value['id'];
        $array['name'] = $value['title_show'];
        $menusArr[] = $array;
    }
    ?>


    <?= $this->render('_form', [
        'model' => $model,
           'menus' => $menusArr,
    ]) ?>

</div>
